//  Copyright (c) 2008  Yoong-ki Ahn & Youngjin Kim < mexif@googlegroups.com>
//  See the enclosed file COPYING for license information (MIT Licence).
//  If you did not receive this file,
//  see http://www.opensource.org/licenses/mit-license.php.


import mexif.*;



public class Test {
	public static void main(String args[]) {
		try {
			//String dirSample = "D:\\Projects\\mexif\\sample\\";
			String dirSample = "./";
			//JpegTags exif = new JpegTags(dirSample + "Canon/Canon_iVIS_DC50.jpg");
			//JpegTags exif = new JpegTags(dirSample + "CasioEX-M1.jpg");
			MExif exif = new MExif(dirSample + "RicohCaplio500SE.jpg");
			
			TagValue[] tags = exif.getExifSection(EnumExifSection.MEXIF_SECTION_EXIF);
			
			for(int i=0; i<tags.length; i++) {
				System.out.println(tags[i].mTagName + ", Desc( " + tags[i].mTagDesc + " ), Value("+tags[i].mTagValue+")");
			}
			
		} catch (Exception ex) {
		    ex.printStackTrace();
		}
    }
}
